<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="调度员" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-12">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="searchDispatch(1)" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.purchaseAmountAnalysisExport">
                            <div title="导出" yb-download download-url="exportParam.dispatchUrl" download-param="dispatchCondition">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                        </div>
                    </div>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="调度员名称"
                               ng-model="dispatchCondition.name">
                        <span class="input-group-addon cursor-pointer" ng-click="searchDispatch(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:85px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x" style="height:41px;">
                        <table class="table-fixed border-none" width="{{dispatchTb.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="item in dispatchTb.tableCol track by $index" ng-if="item.isShow" width="{{item.width}}">
                                        <div yb-thead-operate ng-model="item" target-width="tbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" style="top:41px"  ng-show="dispatchList.length > 0">
                        <table class="table-fixed border-none" width="{{dispatchTb.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dispatchList track by $index">
                                    <td ng-repeat="itemCol in dispatchTb.tableCol track by $index" width="{{itemCol.width}}"
                                        class="spill-dots" title="{{item[itemCol.dataField]}}" ng-if="itemCol.isShow">
                                        {{item[itemCol.dataField]|YbNull}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" style="top:41px" ng-show="dispatchList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="dispatchPageInfo" yb-refresh="searchDispatch()"></div>
            </div>
        </div>
        <div tab heading="代理商" active="activeFlag[1]" ng-click="changeTab(1)">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-12">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="searchAgent(1)" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.purchaseAmountAnalysisExport">
                            <div title="导出" yb-download download-url="exportParam.agentUrl" download-param="agentCondition">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                        </div>
                    </div>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="代理商名称"
                               ng-model="agentCondition.name">
                        <span class="input-group-addon cursor-pointer" ng-click="searchAgent(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:85px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x" style="height:41px;">
                        <table class="table-fixed border-none" width="{{agentTb.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="item in agentTb.tableCol track by $index" ng-if="item.isShow" width="{{item.width}}">
                                    <div yb-thead-operate ng-model="item" target-width="tbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" style="top:41px"  ng-show="agentList.length > 0">
                        <table class="table-fixed border-none" width="{{agentTb.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in agentList track by $index">
                                    <td ng-repeat="itemCol in agentTb.tableCol track by $index" width="{{itemCol.width}}"
                                        class="spill-dots" title="{{item[itemCol.dataField]}}" ng-if="itemCol.isShow">
                                        {{item[itemCol.dataField]|YbNull}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" style="top:41px" ng-show="agentList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="agentPageInfo" yb-refresh="searchAgent()"></div>
            </div>
        </div>
        <div tab heading="订单类型" active="activeFlag[2]" ng-click="changeTab(2)">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-12">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="searchOrder(1)" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.purchaseAmountAnalysisExport">
                            <div title="导出" yb-download download-url="exportParam.orderUrl" download-param="orderCondition">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                        </div>
                    </div>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="订单类型"
                               ng-model="orderCondition.name">
                        <span class="input-group-addon cursor-pointer" ng-click="searchOrder(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:85px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x" style="height:41px;">
                        <table class="table-fixed border-none" width="{{orderTb.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="item in orderTb.tableCol track by $index" ng-if="item.isShow" width="{{item.width}}">
                                    <div yb-thead-operate ng-model="item" target-width="tbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" style="top:41px"  ng-show="orderList.length > 0">
                        <table class="table-fixed border-none" width="{{orderTb.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderList track by $index">
                                    <td ng-repeat="itemCol in orderTb.tableCol track by $index" width="{{itemCol.width}}"
                                        class="spill-dots" title="{{item[itemCol.dataField]}}" ng-if="itemCol.isShow">
                                        {{item[itemCol.dataField]|YbNull}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" style="top:41px" ng-show="orderList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="orderPageInfo" yb-refresh="searchOrder()"></div>
            </div>
        </div>
        <div tab heading="采购组" active="activeFlag[3]" ng-click="changeTab(3)">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-12">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="searchPurchase(1)" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.purchaseAmountAnalysisExport">
                            <div title="导出" yb-download download-url="exportParam.purchaseUrl" download-param="purchaseCondition">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                        </div>
                    </div>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="采购组名称"
                               ng-model="purchaseCondition.name">
                        <span class="input-group-addon cursor-pointer" ng-click="searchPurchase(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:85px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x" style="height:41px;">
                        <table class="table-fixed border-none" width="{{purchaseTb.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="item in purchaseTb.tableCol track by $index" ng-if="item.isShow" width="{{item.width}}">
                                    <div yb-thead-operate ng-model="item" target-width="tbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" style="top:41px"  ng-show="purchaseList.length > 0">
                        <table class="table-fixed border-none" width="{{purchaseTb.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in purchaseList track by $index">
                                    <td ng-repeat="itemCol in purchaseTb.tableCol track by $index" width="{{itemCol.width}}"
                                        class="spill-dots" title="{{item[itemCol.dataField]}}" ng-if="itemCol.isShow">
                                        {{item[itemCol.dataField]|YbNull}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" style="top:41px" ng-show="purchaseList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="purchasePageInfo" yb-refresh="searchPurchase()"></div>
            </div>
        </div>
    </div>
</div>